package Practice;

public class TheQQ {
    @InputUtil.InputField
    private String name;
    @InputUtil.InputField(title = "用户名",mode = {"注册","删除","插入","查询"})
    private String QQ_id;
    @InputUtil.InputField(title = "密码", mode = "注册",regex = "[0-9]+")
    private String QQ_password;
    @InputUtil.InputField(title = "昵称",mode = "注册")
    private String nickname;
    @InputUtil.InputField(title = "邮箱",mode = "注册", regex = "[a-zA-Z0-9]+@[a-zA-Z0-9]+\\.[a-zA-Z0-9]+")
    private String email;
    TheQQ(){

    }
    public TheQQ(String name, String QQ_id, String QQ_password, String nickname, String email) {
        this.name = name;
        this.QQ_id = QQ_id;
        this.QQ_password = QQ_password;
        this.nickname = nickname;
        this.email = email;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getQQ_id() {
        return QQ_id;
    }

    public void setQQ_id(String QQ_id) {
        this.QQ_id = QQ_id;
    }

    public String getQQ_password() {
        return QQ_password;
    }

    public void setQQ_password(String QQ_password) {
        this.QQ_password = QQ_password;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "TheQQ{" +
                "name='" + name + '\'' +
                ", QQ_id='" + QQ_id + '\'' +
                ", QQ_password='" + QQ_password + '\'' +
                ", nickname='" + nickname + '\'' +
                ", email='" + email + '\'' +
                '}';
    }
}
